package cn.itcast.autoconfig;

import cn.itcast.interceptor.IpCountInterceptor;
import cn.itcast.interceptor.SpringMvcConfig;
import cn.itcast.properties.IpProperties;
import cn.itcast.service.IpCountService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/21 8:58 下午
 */

@EnableScheduling
//@EnableConfigurationProperties(IpProperties.class)
@Import({IpProperties.class, SpringMvcConfig.class})
public class IpAutoConfiguration {

    @Bean
    public IpCountService ipCountService() {
        return new IpCountService();
    }
}
